package com.engine.impl;

import com.domain.Award;
import com.domain.Expression;
import com.engine.IRule;

public class BianDiJin implements IRule {
    private Award award;

    @Override
    public boolean evaluate(Expression e) {
        boolean flag = false;
        if (e.getOne() == 6) {
            flag = true;
            award = new Award("状元", "遍地锦");
        }
        return flag;
    }

    @Override
    public Award getAward() {
        return award;
    }
}
